<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table class="table table-condensed table-bordered table-hover" >

					<tr>
						<th><input type="checkbox" name="checkAll" onclick="checkAll();"></th>
						<th>标题</th>
						<th>主页</th>
						<th>状态</th>
						<th>标签</th>
						<th>开服日期</th>
						<th>广告期限</th>
						<th>客服qq</th>
						<th>
							<button id="add_btn" class="btn btn-small btn-primary" onclick="add('content')">添加</button>
							<button id="del_btn" class="btn btn-small btn-primary" onclick="del('content');">删除</button>
						</th>
					</tr>
					<c:forEach items="${pageModel.list }" var="c">
						<tr dataid=${c.id }>
							<td align="center" width="20"><input type="checkbox" name="ck" onclick="checkOne();"></td>
							<td>${c.title}</td>
							<td>${c.site}</td>
							<td>${c.statusName }</td>
							<td>${c.tag.name }</td>
							<td>${c.openTime}</td>
							<td>${c.deadline}</td>
							<td>${c.qq}</td>
							<td>
								<button class="btn btn-small" onclick="edit('content',${c.id})">修改</button>
							</td>
						</tr>
					</c:forEach>
				</table>
<input type="hidden" id="page" value="${pageModel.currentPage }">
<p id="pager">				
<script type="text/javascript">
	$(document).ready(function(){
		if(${pageModel.totalPage >1}){
	  		 $("#pager").pager({ 
	           	pagenumber: "${pageModel.currentPage}", 
	           	pagecount: "${pageModel.totalPage}", 
	           	buttonClickCallback: function(page){
	           		$("#grid_content").load("/manage/content/contentgrid",{
	      	  		  openTime:$("#openTime").val(),
	      	  		  status:$("#status").val(),
	      	  		  page:page,
	      	  		  tag:$("#tag_filter").val()
	      	  	  	});
	           	  }
	           });
	  	}
	});
</script>